//
//  dengluController.m
//  weiAai
//
//  Created by ibokan on 14-12-13.
//  Copyright (c) 2014年 ibokan. All rights reserved.
//

#import "dengluController.h"
#import "weiboController.h"
#import "ScrollController.h"
@interface dengluController ()
@property(strong,nonatomic) weiboController*weiboa;
@property(strong,nonatomic)ScrollController *scroll;
@end

@implementation dengluController


- (void)viewDidLoad
{
    [super viewDidLoad];
//	[self setupNavigationItem];
    [self WeiboDenglu];
    
}
-(void)setupNavigationItem
{
     self.title =@"登录";
       self.navigationItem.leftBarButtonItem =[[UIBarButtonItem alloc]initWithBarButtonSystemItem:   UIBarButtonSystemItemAction target:self action:@selector(backing)];

}
-(void)backing
{
    
}
-(void)WeiboDenglu
{
    UIButton *button =[[UIButton alloc]init];
 
    button.frame =CGRectMake(156, 250, 90, 30);
    [button setTitle:@"微博登陆" forState:UIControlStateNormal];
    button.backgroundColor =[UIColor redColor];
    [button addTarget:self action:@selector(weibo) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
}
-(void)weibo
{
    weiboController*wei =[[weiboController alloc]init];
    
    [self.navigationController pushViewController:wei animated:YES ];
}
@end
